<?php
namespace app\api\model;

use think\Model;

class Banner extends Base{
    protected $name = 'banner';

    // 获取器
    public function getImgAttr($val){
        if(!$val){
            return $val;
        }

        return config('app.url') . $val;
    }
}